﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows;


namespace GWPresentation
{
    public   class CommandService
    {

        protected CommandService()
        {
 
        }


        static CommandService currentService;

        public static CommandService CurrentService
        {
            get {

                if (currentService==null)
                {
                    currentService = new CommandService();
                    
                }
                
                return CommandService.currentService; 
            
            }
           
        }



          /// <summary>
        /// 将命令绑定到窗体
        /// </summary>
        /// <param name="window"></param>
        public  void BindCommandsToWindow(Window window)
        {

            CommonCommandsBinder.BindCommandsToWindow(window);
            GisCommandBinder.BindCommandsToWindow(window);
            XnaCommandBinder.BindCommandsToWindow(window);
            DialogCommandBinder.BindCommandsToWindow(window);

            AppBaseCommandsBinder.BindCommandsToWindow(window);






        }


        public  void BindKeyToWindow(Window window)
        {


        }


    }
}
